package com.nuoniu.sibanyun.entity.expenses;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 费用中心-支付订单
 * </p>
 *
 * @author 小啊刚
 * @since 2022-05-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("expenses_payment_order")
@ApiModel(value="ExpensesPaymentOrder对象", description="费用中心-支付订单")
public class ExpensesPaymentOrder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "支付订单号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "流水号")
    @TableField("serial_num")
    private Integer serialNum;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "业务类型 1.现金充值 ")
    @TableField("business_type")
    private Integer businessType;

    @ApiModelProperty(value = "支付方式 1：微信 2：支付宝 ")
    @TableField("payment_type")
    private Integer paymentType;

    @ApiModelProperty(value = "金额")
    @TableField("payment_amount")
    private BigDecimal paymentAmount;

    @ApiModelProperty(value = "支付凭证（交易号）")
    @TableField("payment_proof")
    private String paymentProof;

    @ApiModelProperty(value = "支付时间")
    @TableField("payment_time")
    private LocalDateTime paymentTime;

    @ApiModelProperty(value = "支付状态： 0.未支付 1.已支付")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "支付回调JSON")
    @TableField("call_back_json")
    private String callBackJson;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


}
